package com.hjc.controller;

import com.hjc.entity.Result;
import com.hjc.service.StatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/statistics")
public class StatisticsController {

    @Autowired
    private StatisticsService statisticsService;
//    http://localhost:3000/api/statistics/store-invent
    @RequestMapping("/store-invent")
    public Result findStatistics() {
        return statisticsService.findStatistics();
    }



}
